package com.lxw.nonghe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lxw.nonghe.entity.Farmer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lxw.nonghe.entity.MedicalInstitution;

import java.util.List;

/**
 * <p>
 * 参合农民档案表 服务类
 * </p>
 *
 * @author lxw
 * @since 2025-04-17
 */
public interface FarmerService extends IService<Farmer> {
    Page<Farmer> getFarmerPage(int current, int size, String name, String idCard, Integer familyId, String isRural);

    Page<Farmer> getFarmerPage(int current, int size, String name);

    Farmer getFarmerByName(String name);
    Farmer getFarmerByIdCart(String idCard);

    Page<Farmer> queryFarmers(Farmer queryFarmer, int current, int size);

    // 新增方法
    List<Farmer> getFarmersByFamilyId(Integer familyId);

    String getIdCardByFamilyIdAndName(Integer familyId, String name);
}
